package com.dragon.modules.yuegou.entity.merchant;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商户二维码实体类<br>
 * 对应的表为：mer_qrcode<br>
 * 
 * @author pbuilder generated
 * @date 2019-09-28 14:32:38
 * @company sgy
 * @version 2.0
 */
@TableName("mer_qrcode")
@ApiModel(description = "商户二维码")
public class QrcodeEntity {

	@ApiModelProperty("商户ID")
	protected String merchantId;

    /** 二维码地址 */
	@ApiModelProperty("二维码地址")
	protected String qrcodeUrl;

    /** 链接地址 */
	@ApiModelProperty("链接地址")
	protected String link;

    /** 短链接 */
	@ApiModelProperty("短链接")
	protected String shortUrl;

    /** 折扣 0.01到100.00的浮点数，填写90.00表示打9折系统默认是100.00 */
	@ApiModelProperty("折扣 0.01到100.00的浮点数，填写90.00表示打9折系统默认是100.00")
	protected BigDecimal discount;

    /**  */
	protected String createdBy;

    /**  */
	protected LocalDateTime createdTime;

    /** 状态:0 关闭　1:开启 */
	protected Boolean status;

	/**
	 * 构造一个空商户二维码实体对象
	 */
	public QrcodeEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个商户二维码实体对象
	 * 
	 * @param other 其它对象
	 */
	public QrcodeEntity(QrcodeEntity other){
		super();
     	this.merchantId = other.merchantId;
     	this.qrcodeUrl = other.qrcodeUrl;
     	this.link = other.link;
     	this.shortUrl = other.shortUrl;
     	this.discount = other.discount;
     	this.createdBy = other.createdBy;
     	this.createdTime = other.createdTime;
     	this.status = other.status;
	}


	/**
	 * 获取商户ID
	 * 
	 * @return merchantId 商户ID
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * 获取二维码地址
	 * 
	 * @return qrcodeUrl 二维码地址
	 */
	public String getQrcodeUrl() {
		return qrcodeUrl;
	}
  	
	/**
	 * 设置二维码地址
	 * 
	 * @param qrcodeUrl 二维码地址
	 */
	public void setQrcodeUrl(String qrcodeUrl) {
		this.qrcodeUrl = qrcodeUrl;
	}

	/**
	 * 获取链接地址
	 * 
	 * @return link 链接地址
	 */
	public String getLink() {
		return link;
	}
  	
	/**
	 * 设置链接地址
	 * 
	 * @param link 链接地址
	 */
	public void setLink(String link) {
		this.link = link;
	}

	/**
	 * 获取短链接
	 * 
	 * @return shortUrl 短链接
	 */
	public String getShortUrl() {
		return shortUrl;
	}
  	
	/**
	 * 设置短链接
	 * 
	 * @param shortUrl 短链接
	 */
	public void setShortUrl(String shortUrl) {
		this.shortUrl = shortUrl;
	}

	/**
	 * 获取折扣 0.01到100.00的浮点数，填写90.00表示打9折系统默认是100.00
	 * 
	 * @return discount 折扣 0.01到100.00的浮点数，填写90.00表示打9折系统默认是100.00
	 */
	public BigDecimal getDiscount() {
		return discount;
	}
  	
	/**
	 * 设置折扣 0.01到100.00的浮点数，填写90.00表示打9折系统默认是100.00
	 * 
	 * @param discount 折扣 0.01到100.00的浮点数，填写90.00表示打9折系统默认是100.00
	 */
	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	/**
	 * 获取
	 * 
	 * @return createdBy 
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdBy 
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取
	 * 
	 * @return createdTime 
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdTime 
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取状态:0 关闭　1:开启
	 * 
	 * @return status 状态:0 关闭　1:开启
	 */
	public Boolean getStatus() {
		return status;
	}
  	
	/**
	 * 设置状态:0 关闭　1:开启
	 * 
	 * @param status 状态:0 关闭　1:开启
	 */
	public void setStatus(Boolean status) {
		this.status = status;
	}

    public String toString() {
		return new StringBuilder().append("QrcodeEntity{").
			append("merchantId=").append(merchantId).
			append(",qrcodeUrl=").append(qrcodeUrl).
			append(",link=").append(link).
			append(",shortUrl=").append(shortUrl).
			append(",discount=").append(discount).
			append(",createdBy=").append(createdBy).
			append(",createdTime=").append(createdTime).
			append(",status=").append(status).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public QrcodeEntity copy() {
		return new QrcodeEntity(this);
	}

    /** 商户ID */
	public static final String COL_MERCHANT_ID = "merchant_id";

    /** 二维码地址 */
	public static final String COL_QRCODE_URL = "qrcode_url";

    /** 链接地址 */
	public static final String COL_LINK = "link";

    /** 短链接 */
	public static final String COL_SHORT_URL = "short_url";

    /** 折扣 0.01到100.00的浮点数，填写90.00表示打9折系统默认是100.00 */
	public static final String COL_DISCOUNT = "discount";

    /**  */
	public static final String COL_CREATED_BY = "created_by";

    /**  */
	public static final String COL_CREATED_TIME = "created_time";

    /** 状态:0 关闭　1:开启 */
	public static final String COL_STATUS = "status";
}
